package me.chnxan.idm;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import me.chnxan.core.ModelAtom;

/**
 * @author chnxan
 * 
 */
@Entity
@Table(name = "IDM_USER")
public class User extends ModelAtom {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long uid;

	private String password;

	public User() {
	}

	public User(long uid) {
		this.uid = uid;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "UID")
	public long getUid() {
		return this.uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	@Column(name = "PASSWORD")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}